# 导入包
import time

from selenium import webdriver
from selenium.webdriver.common.by import By

driver = webdriver.Chrome()
driver.get("http://121.43.169.97:8848/pageA.html")

# 语法： 浏览器对象.find_element(by=By.LINK_TEXT,value="百度")
# 注意：需要在末尾加上.click()
# driver.find_element(by=By.LINK_TEXT,value="打开百度") #错误
driver.find_element(by=By.LINK_TEXT,value="打开百度").click()
time.sleep(3)
driver.quit()
